From: Dylan Noblesmith Date: Mon, 13 Feb 2012 14:22:35 +0000 (+0000) Subject: StaticAnalyzer/Core: fix MSVC build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63d7ed8470e528da56ac4b2deae6a31ec3bd44fc;p=clang StaticAnalyzer/Core: fix MSVC build Fix build breakage from r150378: MSVC only allows taking the address of a member function using the &ClassName::Function syntax.# It was giving git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150387 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/CheckerRegistry.h b/include/clang/StaticAnalyzer/Core/CheckerRegistry.h index b59c14d32f..1452d45073 100644 --- a/include/clang/StaticAnalyzer/Core/CheckerRegistry.h +++ b/include/clang/StaticAnalyzer/Core/CheckerRegistry.h @@ -107,7 +107,9 @@ public: /// checker does not require any custom initialization. template void addChecker(StringRef fullName, StringRef desc) { - addChecker(&initializeManager, fullName, desc); + // Avoid MSVC's Compiler Error C2276: + // http://msdn.microsoft.com/en-us/library/850cstw1(v=VS.80).aspx + addChecker(&CheckerRegistry::initializeManager, fullName, desc); } /// Initializes a CheckerManager by calling the initialization functions for