OSDN Git Service

Add `llvm::` in clEnumVal macro (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 14 Oct 2016 03:54:46 +0000 (03:54 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 14 Oct 2016 03:54:46 +0000 (03:54 +0000)
This allows to use llvm:cl::opt without `using namespace llvm;`

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284190 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index c20765d..692e16d 100644 (file)
@@ -565,9 +565,9 @@ struct OptionEnumValue {
 };
 
 #define clEnumVal(ENUMVAL, DESC)                                               \
-  cl::OptionEnumValue { #ENUMVAL, int(ENUMVAL), DESC }
+  llvm::cl::OptionEnumValue { #ENUMVAL, int(ENUMVAL), DESC }
 #define clEnumValN(ENUMVAL, FLAGNAME, DESC)                                    \
-  cl::OptionEnumValue { FLAGNAME, int(ENUMVAL), DESC }
+  llvm::cl::OptionEnumValue { FLAGNAME, int(ENUMVAL), DESC }
 
 // values - For custom data types, allow specifying a group of values together
 // as the values that go into the mapping that the option handler uses.