This is an archive of the discontinued LLVM Phabricator instance.

[clang][ExtractAPI] Fix bool spelling coming from the macro definition.
ClosedPublic

Authored by evelez7 on Aug 21 2023, 6:43 PM.

Details

Summary

getFragmentsForType resulted in a bool typeIdentifier fragment to be spelled "_Bool".
This fixes the spelling to be "bool" and checks it in C and C++.

Diff Detail

Event Timeline

evelez7 created this revision.Aug 21 2023, 6:43 PM
Herald added a project: Restricted Project. · View Herald Transcript
evelez7 requested review of this revision.Aug 21 2023, 6:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 6:43 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
dang accepted this revision.Aug 22 2023, 2:27 AM

Nice!

This revision is now accepted and ready to land.Aug 22 2023, 2:27 AM
evelez7 updated this revision to Diff 552504.Aug 22 2023, 2:13 PM

Use clang instead of clang_cc1 like other C tests.

This revision was landed with ongoing or failed builds.Aug 22 2023, 3:00 PM
This revision was automatically updated to reflect the committed changes.
aeubanks added inline comments.
clang/test/ExtractAPI/bool.c
14

clang tests should not be including system headers since that makes the tests non-hermetic (this test fails in our internal builds that provide more isolated test environments), could you make this not include <stdbool.h>?

aeubanks added inline comments.Sep 7 2023, 10:41 AM
clang/test/ExtractAPI/bool.c
14

ignore my previous comment, stdbool.h is provided by clang, sorry for the trouble