This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Do not treat the asm clobber [ as ObjCExpr
ClosedPublic

Authored by krasimir on Nov 5 2018, 9:09 AM.

Details

Summary

The opening square of an inline asm clobber was being annotated as an ObjCExpr.
This caused, amongst other things, the ObjCGuesser to guess header files
containing that pattern as ObjC files.

Diff Detail

Repository
rL LLVM

Event Timeline

krasimir created this revision.Nov 5 2018, 9:09 AM
krasimir updated this revision to Diff 172602.Nov 5 2018, 9:10 AM
  • Clean-up
benhamilton accepted this revision.Nov 5 2018, 9:20 AM

In the diff description, please fix the typo: Do not threat the asm clobber -> Do not treat the asm clobber

unittests/Format/FormatTest.cpp
12756–12763 ↗(On Diff #172602)

Worth a second test with asm volatile (...) ?

This revision is now accepted and ready to land.Nov 5 2018, 9:20 AM
krasimir retitled this revision from [clang-format] Do not threat the asm clobber [ as ObjCExpr to [clang-format] Do not treat the asm clobber [ as ObjCExpr.Nov 6 2018, 3:11 AM
krasimir updated this revision to Diff 172738.Nov 6 2018, 3:13 AM
  • Address review comments
This revision was automatically updated to reflect the committed changes.