summaryrefslogtreecommitdiff
path: root/include/clang/Basic/IdentifierTable.h
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-06-07 22:29:12 +0000
committerAdrian Prantl <aprantl@apple.com>2013-06-07 22:29:12 +0000
commit80e8ea92d6dcaa05165dcb4730485db82dcd4629 (patch)
tree5d68756ebb76683a5369e35003cdcb2d22ead805 /include/clang/Basic/IdentifierTable.h
parentf9eaf98bf524f7e2dcb9875a9f4afd9e25fc615d (diff)
downloadclang-80e8ea92d6dcaa05165dcb4730485db82dcd4629.tar.gz
clang-80e8ea92d6dcaa05165dcb4730485db82dcd4629.tar.bz2
clang-80e8ea92d6dcaa05165dcb4730485db82dcd4629.tar.xz
address some comments on r183474:
- factor the name construction part out from constructSetterName - rename constructSetterName to the more appropriate constructSetterSelector no functionality change intended. rdar://problem/14035789 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/IdentifierTable.h')
-rw-r--r--include/clang/Basic/IdentifierTable.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h
index d4d53390bd..b9c9ce7799 100644
--- a/include/clang/Basic/IdentifierTable.h
+++ b/include/clang/Basic/IdentifierTable.h
@@ -19,6 +19,7 @@
#include "clang/Basic/LLVM.h"
#include "clang/Basic/OperatorKinds.h"
#include "clang/Basic/TokenKinds.h"
+#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/PointerLikeTypeTraits.h"
@@ -725,13 +726,19 @@ public:
/// \brief Return the total amount of memory allocated for managing selectors.
size_t getTotalMemory() const;
- /// \brief Return the setter name for the given identifier.
+ /// \brief Return the default setter name for the given identifier.
///
/// This is "set" + \p Name where the initial character of \p Name
/// has been capitalized.
- static Selector constructSetterName(IdentifierTable &Idents,
- SelectorTable &SelTable,
- const IdentifierInfo *Name);
+ static SmallString<100> constructSetterName(StringRef Name);
+
+ /// \brief Return the default setter selector for the given identifier.
+ ///
+ /// This is "set" + \p Name where the initial character of \p Name
+ /// has been capitalized.
+ static Selector constructSetterSelector(IdentifierTable &Idents,
+ SelectorTable &SelTable,
+ const IdentifierInfo *Name);
};
/// DeclarationNameExtra - Common base of the MultiKeywordSelector,