[PATCH] Consolidate several functions for checking the std namespace into one function in Decl and one function in DeclContext

Richard Trieu rtrieu at google.com
Wed Apr 9 21:45:58 PDT 2014


Create Decl::isInStdNamespace() and DeclContext::isStdNamespace() for namespace checking.  This will replace six implementations of std namespace checkers.

The std namespace checker in the Itanium mangler has been left since it performs additional checks with its checker.

http://reviews.llvm.org/D3333

Files:
  include/clang/AST/DeclBase.h
  lib/Analysis/Consumed.cpp
  lib/Sema/SemaExceptionSpec.cpp
  lib/Sema/SemaTemplateInstantiateDecl.cpp
  lib/AST/Decl.cpp
  lib/AST/DeclBase.cpp
  lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3333.1.patch
Type: text/x-patch
Size: 8243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140409/865ecba8/attachment.bin>


More information about the cfe-commits mailing list