summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2019-09-05 20:04:11 +0000
committerJan Korous <jkorous@apple.com>2019-09-05 20:04:11 +0000
commitafd82492782fc97e39382509a079053633f57bb7 (patch)
tree62ef48a4ab5b82a34595364e3e3490b98dea034b /clang
parentcae1e47f6ed7effd82cc47e68c2a42513487a1d7 (diff)
downloadbcm5719-llvm-afd82492782fc97e39382509a079053633f57bb7.tar.gz
bcm5719-llvm-afd82492782fc97e39382509a079053633f57bb7.zip
[AST][NFC] Doc comments for ASTNameGenerator
llvm-svn: 371112
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/Mangle.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Mangle.h b/clang/include/clang/AST/Mangle.h
index 1362756f55d..e3c95ddb075 100644
--- a/clang/include/clang/AST/Mangle.h
+++ b/clang/include/clang/AST/Mangle.h
@@ -250,8 +250,16 @@ class ASTNameGenerator {
public:
explicit ASTNameGenerator(ASTContext &Ctx);
~ASTNameGenerator();
+
+ /// Writes name for \p D to \p OS.
+ /// \returns true on failure, false on success.
bool writeName(const Decl *D, raw_ostream &OS);
+
+ /// \returns name for \p D
std::string getName(const Decl *D);
+
+ /// \returns all applicable mangled names.
+ /// For example C++ constructors/destructors can have multiple.
std::vector<std::string> getAllManglings(const Decl *D);
private:
OpenPOWER on IntegriCloud