Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Lorenzo Albano
LLVM bpEVL
Commits
4560276c
Commit
4560276c
authored
15 years ago
by
Argyrios Kyrtzidis
Browse files
Options
Downloads
Patches
Plain Diff
Add Entity::getInternalDecl() to be used only on Entities that refer to internal
(in translation unit) declarations. llvm-svn: 77533
parent
bc6c64de
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/Index/Entity.h
+7
-0
7 additions, 0 deletions
clang/include/clang/Index/Entity.h
with
7 additions
and
0 deletions
clang/include/clang/Index/Entity.h
+
7
−
0
View file @
4560276c
...
...
@@ -57,6 +57,13 @@ public:
/// \brief Find the Decl that can be referred to by this entity.
Decl
*
getDecl
(
ASTContext
&
AST
)
const
;
/// \brief If this Entity represents a declaration that is internal to its
/// translation unit, getInternalDecl() returns it.
Decl
*
getInternalDecl
()
const
{
assert
(
isInternalToTU
()
&&
"This Entity is not internal!"
);
return
Val
.
get
<
Decl
*>
();
}
/// \brief Get a printable name for debugging purpose.
std
::
string
getPrintableName
()
const
;
...
...
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