From: Argyrios Kyrtzidis Date: Wed, 28 Mar 2012 20:42:59 +0000 (+0000) Subject: [libclang] Fix CIndexer::isOptEnabled(); not sure what I was thinking there. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f962eb4dde12366c8617d0b9958b9ed70a328f21;p=clang [libclang] Fix CIndexer::isOptEnabled(); not sure what I was thinking there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153594 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndexer.h b/tools/libclang/CIndexer.h index c8c48e9787..8a249f0ceb 100644 --- a/tools/libclang/CIndexer.h +++ b/tools/libclang/CIndexer.h @@ -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.