forked from qt-creator/qt-creator
Clang: Add clang query
Clang query is mechanism to use AST matcher to search for code. Think about regular expression but in the context of AST. So you get a semantic search tool for C++. Change-Id: I72e882c5b53a0c52f352a3664847c4c3e4f6fc2e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -34,11 +34,6 @@
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
ProjectFile::ProjectFile()
|
||||
: kind(CHeader)
|
||||
{
|
||||
}
|
||||
|
||||
ProjectFile::ProjectFile(const QString &file, Kind kind)
|
||||
: path(file)
|
||||
, kind(kind)
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
OpenCLSource = 10
|
||||
};
|
||||
|
||||
ProjectFile();
|
||||
ProjectFile() = default;
|
||||
ProjectFile(const QString &file, Kind kind);
|
||||
|
||||
static Kind classify(const QString &file);
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
static bool isSource(Kind kind);
|
||||
|
||||
QString path;
|
||||
Kind kind;
|
||||
Kind kind = CHeader;
|
||||
};
|
||||
|
||||
QDebug operator<<(QDebug stream, const CppTools::ProjectFile &cxxFile);
|
||||
|
||||
Reference in New Issue
Block a user