aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/AST/Decl.h1
-rw-r--r--include/clang/Basic/DiagnosticKinds.def12
-rw-r--r--include/clang/Basic/IdentifierTable.h6
3 files changed, 11 insertions, 8 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index 8e688fec5d..46cbe7ab54 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -101,6 +101,7 @@ public:
/// absolutely critical. For simple declarations, @c
/// getIdentifierName() should suffice.
std::string getName() const { return Name.getAsString(); }
+ std::string getNameAsString() const { return Name.getAsString(); }
static bool classof(const Decl *D) {
return D->getKind() >= NamedFirst && D->getKind() <= NamedLast;
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def
index 13894aef86..249b92e608 100644
--- a/include/clang/Basic/DiagnosticKinds.def
+++ b/include/clang/Basic/DiagnosticKinds.def
@@ -489,9 +489,9 @@ DIAG(warn_undef_method_impl, WARNING,
DIAG(warn_incomplete_impl, WARNING,
"incomplete implementation")
DIAG(warn_multiple_method_decl, WARNING,
- "multiple methods named '%0' found")
+ "multiple methods named %0 found")
DIAG(err_duplicate_method_decl, ERROR,
- "duplicate declaration of method '%0'")
+ "duplicate declaration of method %0")
DIAG(err_undeclared_protocol, ERROR,
"cannot find protocol declaration for %0")
DIAG(err_missing_sel_definition, ERROR,
@@ -508,10 +508,12 @@ DIAG(err_conflicting_aliasing_type, ERROR,
"conflicting types for alias %0")
DIAG(err_statically_allocated_object, ERROR,
"statically allocated Objective-C object %0")
-DIAG(warn_method_not_found, WARNING,
- "method '%0%1' not found (return type defaults to 'id')")
+DIAG(warn_class_method_not_found, WARNING,
+ "method %objcclass0 not found (return type defaults to 'id')")
+DIAG(warn_inst_method_not_found, WARNING,
+ "method %objcinstance0 not found (return type defaults to 'id')")
DIAG(warn_method_not_found_in_protocol, WARNING,
- "method '%0%1' not found in protocol (return type defaults to 'id')")
+ "method %objcinstance0 not found in protocol (return type defaults to 'id')")
DIAG(err_collection_expr_type, ERROR,
"collection expression type ('%0') is not a valid object")
DIAG(err_selector_element_type, ERROR,
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h
index 348ef1477f..a0fac27657 100644
--- a/include/clang/Basic/IdentifierTable.h
+++ b/include/clang/Basic/IdentifierTable.h
@@ -281,9 +281,9 @@ public:
unsigned getNumArgs() const;
IdentifierInfo *getIdentifierInfoForSlot(unsigned argIndex) const;
- /// getName - Derive the full selector name (e.g. "foo:bar:") and return it.
- ///
- std::string getName() const;
+ /// getAsString - Derive the full selector name (e.g. "foo:bar:") and return
+ /// it as an std::string.
+ std::string getAsString() const;
static Selector getEmptyMarker() {
return Selector(uintptr_t(-1));