Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
---|---|---|
833 | Perhaps we shouldn't differ between specifiers as that is semantical information |
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
---|---|---|
819 | This part does not seem to appear in the source. |
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
192 | Should there be getters for various parts of the specifier? | |
205 | Could you add more details? Feel free to even quote the relevant grammar bits. | |
213 | unqualified-id in the grammar can be more than one token. | |
214 | Could you swap the order of getters to match the source order? | |
clang/lib/Tooling/Syntax/BuildTree.cpp | ||
618 | Do we need to mark the role if it is unknown? | |
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
755 | Could you add more tests even if they fail today due to missing implementation? a::b::operator-(a::b::S()) etc. Basically cover the whole grammar in tests, if possible. |
clang/lib/Tooling/Syntax/BuildTree.cpp | ||
---|---|---|
618 | Thanks, that had slipped through, sorry for that |
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
210 | Please add a TODO for the accessor for the 'template' keyword (and a test that has that keyword). |
- cleanup for upstreaming
- better coverage for unqualified-id
- Better coverage for qualified-id
- Finish implementing unqualified-id.
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
192 | I think not. | |
210 | I can implement accessor. But I couldn't write a test with this template keyword that uses DeclRefExpr. This is the test I came up with, note that both expressions are represented as DependentScopeDeclRefExpr | |
217 | Just by looking at code it is impossible to know if the accessed thing is optional or not. |
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
187 | Could you provide examples or a grammar quote in the comment? | |
207 | "the size in std::vector<int>::size" | |
214 | Could you add TODOs about adding accessors? | |
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
700 | Could you split off the parts of this test that don't depend on C++11? | |
983 | "WithTemplateKeyword" | |
1101 | "QualifiedIdDecltype" for consistency with other tests. | |
1109 | Indent -2? | |
1112 | Could you indent the second line? |
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
192 | Pospone to interface discussion with Yitzhak | |
214 | Pospone to interface discussion with Yitzhak | |
clang/lib/Tooling/Syntax/Nodes.cpp | ||
178–197 | I was thinking and our problem is bigger than not testing for NodeRoles, we don't test accessors at all! | |
182 | This should be an assert for now, as if that is not true it would be a logic problem. Same reasoning applies to CompoundStatement |
clang/lib/Tooling/Syntax/Nodes.cpp | ||
---|---|---|
182 | Yep, feel free to change it to an assert. |
Hi, you can drop Reviewers: Subscribers: Tags: and the text Summary: from the git commit with the following script:
arcfilter () { arc amend git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F - }
Reviewed By: is considered important by some people. Please keep the tag. (I have updated my script to use --date=now (setting author date to committer date))
https://reviews.llvm.org/D80978 contains a git pre-push hook to automate this.
Could you provide examples or a grammar quote in the comment?