Commit 0fd21335 authored by Marco Bubke's avatar Marco Bubke

Clang: Tests for code completion

Reparsing in Clang is broken in master. We need to test what is working
in which version.

Change-Id: I620acd4a0a5adc951951e0fc3c0a4096ac9844fe
Reviewed-by: 's avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 2afdfeeb
This diff is collapsed.
void function()
{
}
class Foo;
void functionWithArguments(int i, char *c, const Foo &ref)
{
}
void otherFunction()
{
}
void f()
{
}
#include "complete_forwarding_header_1.h"
void Function()
{
}
class Foo;
void FunctionWithArguments(int i, char *c, const Foo &ref)
{
}
void SavedFunction()
{
}
void f()
{
}
#include "complete_forwarding_header_2.h"
void Function()
{
}
class Foo;
void FunctionWithArguments(int i, char *c, const Foo &ref)
{
}
void UnsavedFunction()
{
}
#define Macro
int GlobalVariableInUnsavedFile;
void f()
{
int VariableInUnsavedFile;
}
void function()
{
}
class Foo;
void functionWithArguments(int i, char *c, const Foo &ref)
{
}
void newFunction()
{
}
#define Macro
void f()
{
}
#ifndef COMPLETE_FORWARDING_HEADER_1_H
#define COMPLETE_FORWARDING_HEADER_1_H
#include <complete_target_header.h>
#endif // COMPLETE_FORWARDING_HEADER_1_H
#ifndef COMPLETE_FORWARDING_HEADER_2_H
#define COMPLETE_FORWARDING_HEADER_2_H
#include <complete_target_header.h>
#endif // COMPLETE_FORWARDING_HEADER_2_H
#ifndef COMPLETE_TARGET_HEADER_H
#define COMPLETE_TARGET_HEADER_H
void FunctionInIncludedHeader();
#endif // COMPLETE_TARGET_HEADER_H
#ifndef COMPLETE_TARGET_HEADER_CHANGED_H
#define COMPLETE_TARGET_HEADER_CHANGED_H
void FunctionInIncludedHeader();
void FunctionInIncludedHeaderChanged();
#endif // COMPLETE_TARGET_HEADER_CHANGED_H
#ifndef COMPLETE_TARGET_HEADER_UNSAVED_H
#define COMPLETE_TARGET_HEADER_UNSAVED_H
void FunctionInIncludedHeader();
void FunctionInIncludedHeaderUnsaved();
#endif // COMPLETE_TARGET_HEADER_UNSAVED_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment