diff options
Diffstat (limited to 'tools/libclang/CIndexer.h')
-rw-r--r-- | tools/libclang/CIndexer.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/tools/libclang/CIndexer.h b/tools/libclang/CIndexer.h index 7a8dbd37d022..cb7c62e4b565 100644 --- a/tools/libclang/CIndexer.h +++ b/tools/libclang/CIndexer.h @@ -25,12 +25,12 @@ namespace llvm { } namespace clang { - class ASTUnit; - class MacroInfo; - class MacroDefinition; - class SourceLocation; - class Token; - class IdentifierInfo; +class ASTUnit; +class MacroInfo; +class MacroDefinitionRecord; +class SourceLocation; +class Token; +class IdentifierInfo; class CIndexer { bool OnlyLocalDecls; @@ -92,27 +92,26 @@ public: /// \brief If \c MacroDefLoc points at a macro definition with \c II as /// its name, this retrieves its MacroInfo. MacroInfo *getMacroInfo(const IdentifierInfo &II, - SourceLocation MacroDefLoc, - CXTranslationUnit TU); + SourceLocation MacroDefLoc, CXTranslationUnit TU); - /// \brief Retrieves the corresponding MacroInfo of a MacroDefinition. - const MacroInfo *getMacroInfo(const MacroDefinition *MacroDef, + /// \brief Retrieves the corresponding MacroInfo of a MacroDefinitionRecord. + const MacroInfo *getMacroInfo(const MacroDefinitionRecord *MacroDef, CXTranslationUnit TU); /// \brief If \c Loc resides inside the definition of \c MI and it points at /// an identifier that has ever been a macro name, this returns the latest - /// MacroDefinition for that name, otherwise it returns NULL. - MacroDefinition *checkForMacroInMacroDefinition(const MacroInfo *MI, - SourceLocation Loc, - CXTranslationUnit TU); + /// MacroDefinitionRecord for that name, otherwise it returns NULL. + MacroDefinitionRecord *checkForMacroInMacroDefinition(const MacroInfo *MI, + SourceLocation Loc, + CXTranslationUnit TU); /// \brief If \c Tok resides inside the definition of \c MI and it points at /// an identifier that has ever been a macro name, this returns the latest - /// MacroDefinition for that name, otherwise it returns NULL. - MacroDefinition *checkForMacroInMacroDefinition(const MacroInfo *MI, - const Token &Tok, - CXTranslationUnit TU); - } -} + /// MacroDefinitionRecord for that name, otherwise it returns NULL. + MacroDefinitionRecord *checkForMacroInMacroDefinition(const MacroInfo *MI, + const Token &Tok, + CXTranslationUnit TU); + } + } #endif |