Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
88b7a14a
Commit
88b7a14a
authored
Dec 09, 2008
by
Roberto Raggi
Browse files
Added the methods to get all the identifiers used in a translation unit.
parent
7cf76a2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/Control.cpp
View file @
88b7a14a
...
...
@@ -511,6 +511,12 @@ Identifier *Control::findOrInsertIdentifier(const char *chars)
return
findOrInsertIdentifier
(
chars
,
length
);
}
Control
::
IdentifierIterator
Control
::
firstIdentifier
()
const
{
return
d
->
identifiers
.
begin
();
}
Control
::
IdentifierIterator
Control
::
lastIdentifier
()
const
{
return
d
->
identifiers
.
end
();
}
StringLiteral
*
Control
::
findOrInsertStringLiteral
(
const
char
*
chars
,
unsigned
size
)
{
return
d
->
stringLiterals
.
findOrInsertLiteral
(
chars
,
size
);
}
...
...
shared/cplusplus/Control.h
View file @
88b7a14a
...
...
@@ -151,6 +151,11 @@ public:
Identifier
*
findOrInsertIdentifier
(
const
char
*
chars
,
unsigned
size
);
Identifier
*
findOrInsertIdentifier
(
const
char
*
chars
);
typedef
const
Identifier
*
const
*
IdentifierIterator
;
IdentifierIterator
firstIdentifier
()
const
;
IdentifierIterator
lastIdentifier
()
const
;
StringLiteral
*
findOrInsertStringLiteral
(
const
char
*
chars
,
unsigned
size
);
StringLiteral
*
findOrInsertStringLiteral
(
const
char
*
chars
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment