[all-commits] [llvm/llvm-project] 035067: [clang] Do not traverse EnumDecl's type in Recursi...
Kirill Bobyrev via All-commits
all-commits at lists.llvm.org
Tue Oct 26 08:17:35 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03506722e0c348ce52d87f7f37f024d7adec5c43
https://github.com/llvm/llvm-project/commit/03506722e0c348ce52d87f7f37f024d7adec5c43
Author: Kirill Bobyrev <kbobyrev at google.com>
Date: 2021-10-26 (Tue, 26 Oct 2021)
Changed paths:
M clang/include/clang/AST/RecursiveASTVisitor.h
Log Message:
-----------
[clang] Do not traverse EnumDecl's type in RecursiveASTVisitor
This is inconsistent with the code and comments in
RecursiveASTVisitor.h and is not a correct behavior:
https://github.com/llvm/llvm-project/blob/main/clang/include/clang/AST/RecursiveASTVisitor.h#L1879-L1880
> We shouldn't traverse D->getTypeForDecl(); it's a result of
> declaring the type, not something that was written in the source.
Fixes the failures in 1c2e249f938c50e1b331a1f7adc83c0a381f3897
More information about the All-commits
mailing list