diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-14 08:20:28 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-14 08:20:28 +0000 |
commit | cd7a02ec1b0083b9da3c6cf069cbfdc67c737376 (patch) | |
tree | b16011692a863bc76f698eac59628a559a145521 /clang/lib/Frontend/TextDiagnosticPrinter.cpp | |
parent | ba84cf53bc67bc622de0ae0599dd9166183b77c8 (diff) | |
download | bcm5719-llvm-cd7a02ec1b0083b9da3c6cf069cbfdc67c737376.tar.gz bcm5719-llvm-cd7a02ec1b0083b9da3c6cf069cbfdc67c737376.zip |
Switch the diagnostic messages about macros to use the terms 'expanded'
and 'expansions' rather than 'instantiated' and 'contexts'.
This is the first of several patches migrating Clang's terminology
surrounding macros from 'instantiation' to 'expansion'.
llvm-svn: 135135
Diffstat (limited to 'clang/lib/Frontend/TextDiagnosticPrinter.cpp')
-rw-r--r-- | clang/lib/Frontend/TextDiagnosticPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp index 570a6cda05c..35bd1c0fb37 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -410,7 +410,7 @@ void TextDiagnosticPrinter::EmitCaretDiagnostic(SourceLocation Loc, OS << PLoc.getColumn() << ':'; OS << ' '; } - OS << "note: instantiated from:\n"; + OS << "note: expanded from:\n"; EmitCaretDiagnostic(Loc, Ranges, NumRanges, SM, 0, 0, Columns, OnMacroInst + 1, MacroSkipStart, @@ -421,7 +421,7 @@ void TextDiagnosticPrinter::EmitCaretDiagnostic(SourceLocation Loc, if (OnMacroInst == MacroSkipStart) { // Tell the user that we've skipped contexts. OS << "note: (skipping " << (MacroSkipEnd - MacroSkipStart) - << " contexts in backtrace; use -fmacro-backtrace-limit=0 to see " + << " expansions in backtrace; use -fmacro-backtrace-limit=0 to see " "all)\n"; } |