[all-commits] [llvm/llvm-project] 4ae537: Fix false positive with -Wnon-c-typedef-for-linkage
Richard Trieu via All-commits
all-commits at lists.llvm.org
Thu May 7 19:49:14 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4ae537c2220f5064fdc914348dabe70eb10eef85
https://github.com/llvm/llvm-project/commit/4ae537c2220f5064fdc914348dabe70eb10eef85
Author: Weverything <rtrieu at google.com>
Date: 2020-05-07 (Thu, 07 May 2020)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
M clang/test/SemaCXX/anonymous-struct.cpp
Log Message:
-----------
Fix false positive with -Wnon-c-typedef-for-linkage
Implicit methods for structs can confuse the warning, so exclude checking
the Decl's that are implicit. Implicit Decl's for lambdas still need to
be checked, so skipping all implicit Decl's won't work.
Differential Revision: https://reviews.llvm.org/D79548
More information about the All-commits
mailing list