[cfe-commits] r153594 - /cfe/trunk/tools/libclang/CIndexer.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Mar 28 13:43:00 PDT 2012
Author: akirtzidis
Date: Wed Mar 28 15:42:59 2012
New Revision: 153594
URL: http://llvm.org/viewvc/llvm-project?rev=153594&view=rev
Log:
[libclang] Fix CIndexer::isOptEnabled(); not sure what I was thinking there.
Modified:
cfe/trunk/tools/libclang/CIndexer.h
Modified: cfe/trunk/tools/libclang/CIndexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndexer.h?rev=153594&r1=153593&r2=153594&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndexer.h (original)
+++ cfe/trunk/tools/libclang/CIndexer.h Wed Mar 28 15:42:59 2012
@@ -53,7 +53,7 @@
void setCXGlobalOptFlags(unsigned options) { Options = options; }
bool isOptEnabled(CXGlobalOptFlags opt) const {
- return Options & ~unsigned(opt);
+ return Options & opt;
}
/// \brief Get the path of the clang resource files.
More information about the cfe-commits
mailing list