From 2e10cf9620885bb2d81b93ecd98421beb51c4889 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 3 Nov 2011 00:16:13 +0000 Subject: Add a printing policy flag to suppress printing "::" 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 . llvm-svn: 143599 --- clang/lib/Sema/SemaCodeComplete.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Sema') 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; } -- cgit v1.2.3