Changeset View
Changeset View
Standalone View
Standalone View
src/PreProcessorVisitor.h
Show All 36 Lines | 36 | namespace clang { | |||
---|---|---|---|---|---|
37 | class CompilerInstance; | 37 | class CompilerInstance; | ||
38 | class SourceManager; | 38 | class SourceManager; | ||
39 | class SourceRange; | 39 | class SourceRange; | ||
40 | class Token; | 40 | class Token; | ||
41 | class MacroDefinition; | 41 | class MacroDefinition; | ||
42 | class MacroArgs; | 42 | class MacroArgs; | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | using uint = unsigned; | ||||
46 | | ||||
45 | class PreProcessorVisitor : public clang::PPCallbacks | 47 | class PreProcessorVisitor : public clang::PPCallbacks | ||
46 | { | 48 | { | ||
47 | PreProcessorVisitor(const PreProcessorVisitor &) = delete; | 49 | PreProcessorVisitor(const PreProcessorVisitor &) = delete; | ||
48 | public: | 50 | public: | ||
49 | explicit PreProcessorVisitor(const clang::CompilerInstance &ci); | 51 | explicit PreProcessorVisitor(const clang::CompilerInstance &ci); | ||
50 | 52 | | |||
51 | // Returns for example 050601 (Qt 5.6.1), or -1 if we don't know the version | 53 | // Returns for example 050601 (Qt 5.6.1), or -1 if we don't know the version | ||
52 | int qtVersion() const { return m_qtVersion; } | 54 | int qtVersion() const { return m_qtVersion; } | ||
Show All 23 Lines |