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
58f5b02d
Commit
58f5b02d
authored
Mar 22, 2010
by
Erik Verbruggen
Browse files
Added deprecated identifier.
parent
189ec382
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Control.cpp
View file @
58f5b02d
...
...
@@ -507,6 +507,7 @@ public:
// symbols
std
::
vector
<
Symbol
*>
symbols
;
const
Identifier
*
deprecatedId
;
// ObjC context keywords:
const
Identifier
*
objcGetterId
;
const
Identifier
*
objcSetterId
;
...
...
@@ -522,6 +523,8 @@ Control::Control()
{
d
=
new
Data
(
this
);
d
->
deprecatedId
=
findOrInsertIdentifier
(
"deprecated"
);
d
->
objcGetterId
=
findOrInsertIdentifier
(
"getter"
);
d
->
objcSetterId
=
findOrInsertIdentifier
(
"setter"
);
d
->
objcReadwriteId
=
findOrInsertIdentifier
(
"readwrite"
);
...
...
@@ -719,6 +722,9 @@ ObjCMethod *Control::newObjCMethod(unsigned sourceLocation, const Name *name)
ObjCPropertyDeclaration
*
Control
::
newObjCPropertyDeclaration
(
unsigned
sourceLocation
,
const
Name
*
name
)
{
return
d
->
newObjCPropertyDeclaration
(
sourceLocation
,
name
);
}
const
Identifier
*
Control
::
deprecatedId
()
const
{
return
d
->
deprecatedId
;
}
const
Identifier
*
Control
::
objcGetterId
()
const
{
return
d
->
objcGetterId
;
}
...
...
src/shared/cplusplus/Control.h
View file @
58f5b02d
...
...
@@ -173,6 +173,7 @@ public:
/// Creates a new Objective-C @property declaration symbol.
ObjCPropertyDeclaration
*
newObjCPropertyDeclaration
(
unsigned
sourceLocation
,
const
Name
*
name
);
const
Identifier
*
deprecatedId
()
const
;
// Objective-C specific context keywords.
const
Identifier
*
objcGetterId
()
const
;
const
Identifier
*
objcSetterId
()
const
;
...
...
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