From: Benjamin Kramer Date: Fri, 3 Oct 2014 22:20:30 +0000 (+0000) Subject: Remove stray enum keywords. MSVC sees this as a redeclaration at global scope. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e665b185a55983fdf0d840369a2bc9082ff21d3;p=clang Remove stray enum keywords. MSVC sees this as a redeclaration at global scope. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219031 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 435a253a6b..aee5a43048 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -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 FunctionDecl *FD, ASTContext &C) const { bool MallocChecker::isCMemFunction(const FunctionDecl *FD, ASTContext &C, AllocationFamily Family, - enum MemoryOperationKind MemKind) const { + MemoryOperationKind MemKind) const { if (!FD) return false;