r219031 - Remove stray enum keywords. MSVC sees this as a redeclaration at global scope.

Benjamin Kramer benny.kra at googlemail.com
Fri Oct 3 15:20:30 PDT 2014


Author: d0k
Date: Fri Oct  3 17:20:30 2014
New Revision: 219031

URL: http://llvm.org/viewvc/llvm-project?rev=219031&view=rev
Log:
Remove stray enum keywords. MSVC sees this as a redeclaration at global scope.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp?rev=219031&r1=219030&r2=219031&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp Fri Oct  3 17:20:30 2014
@@ -249,7 +249,7 @@ private:
   bool isCMemFunction(const FunctionDecl *FD,
                       ASTContext &C,
                       AllocationFamily Family,
-                      enum MemoryOperationKind) const;
+                      MemoryOperationKind MemKind) const;
   bool isStandardNewDelete(const FunctionDecl *FD, ASTContext &C) const;
   ///@}
   ProgramStateRef MallocMemReturnsAttr(CheckerContext &C,
@@ -526,7 +526,7 @@ bool MallocChecker::isMemFunction(const
 bool MallocChecker::isCMemFunction(const FunctionDecl *FD,
                                    ASTContext &C,
                                    AllocationFamily Family,
-                                   enum MemoryOperationKind MemKind) const {
+                                   MemoryOperationKind MemKind) const {
   if (!FD)
     return false;
 





More information about the cfe-commits mailing list