]> granicus.if.org Git - clang/commitdiff
[libclang] Fix CIndexer::isOptEnabled(); not sure what I was thinking there.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 28 Mar 2012 20:42:59 +0000 (20:42 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 28 Mar 2012 20:42:59 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153594 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndexer.h

index c8c48e9787ee89e6ebd22d87e0bc52c922d4b2db..8a249f0ceb5eadcc34163cbec09c557a0f59bbba 100644 (file)
@@ -53,7 +53,7 @@ public:
   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.