I expect to eliminate this ambiguity at the grammar level by use of guards,
because it interferes with brace-based error recvoery.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/pseudo/test/cxx/declarator-function.cpp | ||
---|---|---|
13 | nit: the line seems to be broken by the clang-format. | |
clang-tools-extra/pseudo/test/cxx/declarator-var.cpp | ||
11 | why we need two lines for function-definition? |
clang-tools-extra/pseudo/test/cxx/declarator-var.cpp | ||
---|---|---|
11 | Right, we want to forbid function-definition whether it's first or second. In a more complicated example I might use -implicit-check-not but I think this is clearer: hiding assertions in the FileCheck invocation is non-obvious. |
nit: the line seems to be broken by the clang-format.