Improves output for anonymous decls, and updates the '--public' flag to exclude everything under an anonymous namespace.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang-tools-extra/clang-doc/Representation.cpp | ||
---|---|---|
192–215 | Nit: Check for Name.empty() early and return Name if it is empty, then have the switch stmt to avoid the repeated conditional expressions. if (!Name.empty()) return Name switch () { case InfoType::IT_namespace: return llvm::SmallString<16>("GlobalNamespace"); ... } | |
clang-tools-extra/clang-doc/Serialize.cpp | ||
282 | Should this line be Namespace = N->getNameAsString()? |
Nit: Check for Name.empty() early and return Name if it is empty, then have the switch stmt to avoid the repeated conditional expressions.