Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
fdcbc331
Commit
fdcbc331
authored
15 years ago
by
Daniel Dunbar
Browse files
Options
Downloads
Patches
Plain Diff
Add ObjCImplementationDecl::getName() for consistency, with FIXME.
llvm-svn: 84455
parent
8b794813
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/include/clang/AST/DeclObjC.h
+12
-3
12 additions, 3 deletions
clang/include/clang/AST/DeclObjC.h
with
12 additions
and
3 deletions
clang/include/clang/AST/DeclObjC.h
+
12
−
3
View file @
fdcbc331
...
@@ -1008,21 +1008,30 @@ public:
...
@@ -1008,21 +1008,30 @@ public:
return
getClassInterface
()
->
getIdentifier
();
return
getClassInterface
()
->
getIdentifier
();
}
}
/// getName - Get the name of identifier for the class interface associated
/// with this implementation as a StringRef.
//
// FIXME: This is a bad API, we are overriding the NamedDecl::getName, to mean
// something different.
llvm
::
StringRef
getName
()
const
{
assert
(
getIdentifier
()
&&
"Name is not a simple identifier"
);
return
getIdentifier
()
->
getName
();
}
/// getNameAsCString - Get the name of identifier for the class
/// getNameAsCString - Get the name of identifier for the class
/// interface associated with this implementation as a C string
/// interface associated with this implementation as a C string
/// (const char*).
/// (const char*).
//
//
// FIXME: Move to StringRef API.
// FIXME: Move to StringRef API.
const
char
*
getNameAsCString
()
const
{
const
char
*
getNameAsCString
()
const
{
assert
(
getIdentifier
()
&&
"Name is not a simple identifier"
);
return
getName
().
data
();
return
getIdentifier
()
->
getNameStart
();
}
}
/// @brief Get the name of the class associated with this interface.
/// @brief Get the name of the class associated with this interface.
//
//
// FIXME: Move to StringRef API.
// FIXME: Move to StringRef API.
std
::
string
getNameAsString
()
const
{
std
::
string
getNameAsString
()
const
{
return
get
ClassInterface
()
->
getNameAsString
();
return
get
Name
();
}
}
const
ObjCInterfaceDecl
*
getSuperClass
()
const
{
return
SuperClass
;
}
const
ObjCInterfaceDecl
*
getSuperClass
()
const
{
return
SuperClass
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment