Matches NamedDecl nodes whose linkage is external.
Details
Diff Detail
Event Timeline
A few minor nits, but thank you for the patch!
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
5481 | It might also be good to point out the case of an anonymous namespace member which has external linkage (despite having internal semantic linkage because the member has a unique name in all translation units). | |
unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp | ||
1942 | Should use EXPECT_TRUE with notMatches() here and below. |
Mention UniqueExternalLinkage type, add a test according to it.
EXPECT_FALSE(matches( -> EXPECT_TRUE(notMatches(
docs/LibASTMatchersReference.html | ||
---|---|---|
2774 | Please regenerate the .html file. |
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
5490–5497 | I wouldn't copy and paste the text from Linkage.h, merely point out below: Example matches f() because it has external formal linkage despite being unique to the translation unit as though it has internal linkage (matcher = ...). |
Thank you for the review.
I don't have commit access, would you commit this for me, please?
Thanks!
I've commit in r278926. (I can't close because @alexfh hasn't accepted yet; Alex, can you accept & close?)
Sure. Done.
BTW, Phabricator can close revisions automatically on commit: http://llvm.org/docs/Phabricator.html#committing-a-change
Please regenerate the .html file.