Commit 927dffe
Revert "[ASTMatchers] Make isExpandedFromMacro accept llvm::StringRef… (llvm#167060)" (llvm#169238)
This reverts commit a52e1af.
That commit reverted a change (making isExpandedFromMacro take a
std::string) that was explicitly added to avoid lifetime issues. We ran
into issues with some internal matchers due to this, and it probably is
not an uncommon downstream use case. This patch restroes the original
functionality and adds a test to ensure that the functionality is
preserved.
https://reviews.llvm.org/D90303 contains more discussion.1 parent 84c0bf8 commit 927dffe
File tree
4 files changed
+18
-5
lines changed- clang-tools-extra/clang-tidy/objc
- clang
- docs
- include/clang/ASTMatchers
- unittests/ASTMatchers
4 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4222 | 4222 | | |
4223 | 4223 | | |
4224 | 4224 | | |
4225 | | - | |
| 4225 | + | |
4226 | 4226 | | |
4227 | 4227 | | |
4228 | 4228 | | |
| |||
5643 | 5643 | | |
5644 | 5644 | | |
5645 | 5645 | | |
5646 | | - | |
| 5646 | + | |
5647 | 5647 | | |
5648 | 5648 | | |
5649 | 5649 | | |
| |||
5843 | 5843 | | |
5844 | 5844 | | |
5845 | 5845 | | |
5846 | | - | |
| 5846 | + | |
5847 | 5847 | | |
5848 | 5848 | | |
5849 | 5849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
| |||
0 commit comments