diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-26 03:03:00 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-26 03:03:00 +0000 |
| commit | aa63153ff7860024e91708587b9ff9fc360934a6 (patch) | |
| tree | 071966d6903b2aa2b7573690585276bee6d4b177 /clang/lib/Frontend | |
| parent | 5c4df7a4d6751d58f8e1752aea4b7187c00b1d5e (diff) | |
| download | bcm5719-llvm-aa63153ff7860024e91708587b9ff9fc360934a6.tar.gz bcm5719-llvm-aa63153ff7860024e91708587b9ff9fc360934a6.zip | |
Rename SourceManager (and InstantiationInfo) isMacroArgInstantiation API
to isMacroArgExpansion.
llvm-svn: 136053
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/TextDiagnosticPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp index f1659eb295a..c531ddd8461 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -300,7 +300,7 @@ static SourceLocation skipToMacroArgExpansion(const SourceManager &SM, SourceLocation StartLoc) { for (SourceLocation L = StartLoc; L.isMacroID(); L = SM.getImmediateSpellingLoc(L)) { - if (SM.isMacroArgInstantiation(L)) + if (SM.isMacroArgExpansion(L)) return L; } @@ -317,7 +317,7 @@ static SourceLocation getImmediateMacroCallerLoc(const SourceManager &SM, // When we have the location of (part of) an expanded parameter, its spelling // location points to the argument as typed into the macro call, and // therefore is used to locate the macro caller. - if (SM.isMacroArgInstantiation(Loc)) + if (SM.isMacroArgExpansion(Loc)) return SM.getImmediateSpellingLoc(Loc); // Otherwise, the caller of the macro is located where this macro is @@ -334,7 +334,7 @@ static SourceLocation getImmediateMacroCalleeLoc(const SourceManager &SM, // When we have the location of (part of) an expanded parameter, its // expansion location points to the unexpanded paramater reference within // the macro definition (or callee). - if (SM.isMacroArgInstantiation(Loc)) + if (SM.isMacroArgExpansion(Loc)) return SM.getImmediateExpansionRange(Loc).first; // Otherwise, the callee of the macro is located where this location was |

