diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-11-03 00:16:13 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-11-03 00:16:13 +0000 |
| commit | 2e10cf9620885bb2d81b93ecd98421beb51c4889 (patch) | |
| tree | 97f841f8e4b8f241def6102fd4fe406824873177 /clang/lib/Sema | |
| parent | 9589872af9e1a88799d43b1bd403db7d338ba5f0 (diff) | |
| download | bcm5719-llvm-2e10cf9620885bb2d81b93ecd98421beb51c4889.tar.gz bcm5719-llvm-2e10cf9620885bb2d81b93ecd98421beb51c4889.zip | |
Add a printing policy flag to suppress printing "<anonymous>::" prior
to types. Enable this flag for code completion, where knowing whether
something is in an anonymous or inline namespace is actually not
useful, since you don't have to type it anyway. Fixes
<rdar://problem/10208818>.
llvm-svn: 143599
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index 4066a06e529..f964ec14836 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -1381,6 +1381,7 @@ static PrintingPolicy getCompletionPrintingPolicy(Sema &S) { PrintingPolicy Policy = S.getPrintingPolicy(); Policy.AnonymousTagLocations = false; Policy.SuppressStrongLifetime = true; + Policy.SuppressUnwrittenScope = true; return Policy; } |

