This makes throw more similar to return. However, unlike return,
it has to more strict as to not remove spaces after usages of throw as
a (deprecated) exception specifier.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
We should add a test case for TT_CastRParen in clang/unittests/Format/TokenAnnotatorTest.cpp.
clang/unittests/Format/FormatTest.cpp | ||
---|---|---|
10961 | Can we add a test that covers the setting of SpaceAfterCStyleCast with throw? and SpacesInCStyleCastParentheses for completeness |
Comment Actions
@rymiel, please provide your name and email address for the commit message, so that we can land it for you.
Can we add a test that covers the setting of SpaceAfterCStyleCast with throw? and SpacesInCStyleCastParentheses for completeness