[llvm] r284190 - Add `llvm::` in clEnumVal macro (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 20:54:47 PDT 2016


Author: mehdi_amini
Date: Thu Oct 13 22:54:46 2016
New Revision: 284190

URL: http://llvm.org/viewvc/llvm-project?rev=284190&view=rev
Log:
Add `llvm::` in clEnumVal macro (NFC)

This allows to use llvm:cl::opt without `using namespace llvm;`

Modified:
    llvm/trunk/include/llvm/Support/CommandLine.h

Modified: llvm/trunk/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CommandLine.h?rev=284190&r1=284189&r2=284190&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h (original)
+++ llvm/trunk/include/llvm/Support/CommandLine.h Thu Oct 13 22:54:46 2016
@@ -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.




More information about the llvm-commits mailing list