Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
---|---|---|
829 | Perhaps we shouldn't differ between specifiers as that is semantical information |
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
---|---|---|
815 | This part does not seem to appear in the source. |
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
190 | Should there be getters for various parts of the specifier? | |
203 | Could you add more details? Feel free to even quote the relevant grammar bits. | |
211 | unqualified-id in the grammar can be more than one token. | |
212 | 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 | ||
751 | 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 | ||
---|---|---|
208 | 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 | ||
---|---|---|
190 | I think not. | |
208 | 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 | |
215 | 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 | ||
---|---|---|
185 | Could you provide examples or a grammar quote in the comment? | |
205 | "the size in std::vector<int>::size" | |
212 | Could you add TODOs about adding accessors? | |
clang/unittests/Tooling/Syntax/TreeTest.cpp | ||
696 | Could you split off the parts of this test that don't depend on C++11? | |
979 | "WithTemplateKeyword" | |
1097 | "QualifiedIdDecltype" for consistency with other tests. | |
1105 | Indent -2? | |
1108 | Could you indent the second line? |
clang/include/clang/Tooling/Syntax/Nodes.h | ||
---|---|---|
190 | Pospone to interface discussion with Yitzhak | |
212 | Pospone to interface discussion with Yitzhak | |
clang/lib/Tooling/Syntax/Nodes.cpp | ||
174–192 | I was thinking and our problem is bigger than not testing for NodeRoles, we don't test accessors at all! | |
178 | 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 | ||
---|---|---|
178 | 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?