[all-commits] [llvm/llvm-project] 04f627: [Syntax] Build spanning SimpleDecalration for clas...
Ilya Biryukov via All-commits
all-commits at lists.llvm.org
Fri Jan 3 03:33:38 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 04f627f6b9aeda924a83e75d281ab27a546d3515
https://github.com/llvm/llvm-project/commit/04f627f6b9aeda924a83e75d281ab27a546d3515
Author: Ilya Biryukov <ibiryukov at google.com>
Date: 2020-01-03 (Fri, 03 Jan 2020)
Changed paths:
M clang/lib/Tooling/Syntax/BuildTree.cpp
M clang/unittests/Tooling/Syntax/TreeTest.cpp
Log Message:
-----------
[Syntax] Build spanning SimpleDecalration for classes, structs, etc
When they are free-standing, e.g. `struct X;` or `struct X {};`.
Although this complicates the common case (of free-standing class
declarations), this ensures the less common case (e.g. `struct X {} a;`)
are handled uniformly and produce similar syntax trees.
More information about the All-commits
mailing list