[PATCH] D143418: [libclang] Add API to override preamble storage path
Igor Kushnir via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 9 02:06:40 PST 2023
vedgy added inline comments.
================
Comment at: clang/include/clang-c/Index.h:365
+ */
+ int ExcludeDeclarationsFromPCH : 1;
+ /**
----------------
Assigning `true` to `int : 1` bit-fields in C++ code produces a GCC warning:
```
warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
```
Following a suggestion in a comment to https://github.com/llvm/llvm-project/issues/53253, I replaced this `int` with `unsigned` and the warning disappeared. Same for `int DisplayDiagnostics : 1`. Should this type change be included in the upcoming `StorePreamblesInMemory` revision?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143418/new/
https://reviews.llvm.org/D143418
More information about the cfe-commits
mailing list