[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    [PATCH] D56090: Add a matcher for members of an initializer list expression
From:       Aaron Ballman via Phabricator via cfe-commits <cfe-commits () lists ! llvm ! org>
Date:       2018-12-31 15:12:17
Message-ID: 1ec5a96291a66f29625add87abc02a7f () localhost ! localdomain
[Download RAW message or body]

aaron.ballman requested changes to this revision.
aaron.ballman added a comment.
This revision now requires changes to proceed.

In D56090#1341023 <https://reviews.llvm.org/D56090#1341023>, @hwright wrote:

> @lebedev.ri Where do the appropriate tests live?  (I couldn't find an obvious \
> subdirectory in `test/`)


This would live in `clang\unittests\ASTMatchers\ASTMatchersNarrowingTest.cpp`

> Where are the instructions for regenerating the documentation?

Run `clang\docs\tools\dump_ast_matchers.py` and it will generate the documentation \
for you.

You should also update Registry.cpp to list the new matcher.



================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:3527
+  return N < Node.getNumInits() &&
+          InnerMatcher.matches(*Node.getInit(N)->IgnoreParenImpCasts(), Finder,
+                               Builder);
----------------
I'm not certain we want the `IgnoreParenImpCasts()` here -- what if someone wants to \
match an initializer that uses one of those properties?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56090/new/

https://reviews.llvm.org/D56090



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic