diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-20 23:49:24 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-20 23:49:24 +0000 |
commit | 96d21d6fa5792981953b3d9ec749f34357338a0c (patch) | |
tree | 925402021b0a0b115c328bf7c942c64803026676 /clang/lib/Serialization/ModuleManager.cpp | |
parent | 82ad78771b8c59c227e61e74330c0bcaa847d2ea (diff) | |
download | llvm-96d21d6fa5792981953b3d9ec749f34357338a0c.zip llvm-96d21d6fa5792981953b3d9ec749f34357338a0c.tar.gz llvm-96d21d6fa5792981953b3d9ec749f34357338a0c.tar.bz2 |
AsmParser: Use do{}while(false) in macros, NFC
`do { ... } while (false)` is standard macro etiquette for forcing
instantiations into a single statement and requiring a `;` afterwards,
making statement-like macros easier to reason about (and harder to use
incorrectly).
I'm about to modify the macros in `LexIdentifier()`. I noticed that the
`KEYWORD` macro *does* follow the rule, so I thought I'd clean up the
other macros to match (otherwise might not be worth changing, since the
benefits of this pattern are fairly irrelevant here).
llvm-svn: 230095
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions