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
d9812ac3
Commit
d9812ac3
authored
Mar 31, 2009
by
Roberto Raggi
Browse files
Fixed the signature of Symbol::getPosition() & co.
parent
9d90df88
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Symbol.cpp
View file @
d9812ac3
...
...
@@ -247,13 +247,13 @@ StringLiteral *Symbol::fileId() const
return
fileId
;
}
void
Symbol
::
getPosition
(
unsigned
*
line
,
unsigned
*
column
,
StringLiteral
**
fileId
)
void
Symbol
::
getPosition
(
unsigned
*
line
,
unsigned
*
column
,
StringLiteral
**
fileId
)
const
{
translationUnit
()
->
getPosition
(
_sourceOffset
,
line
,
column
,
fileId
);
}
void
Symbol
::
getStartPosition
(
unsigned
*
line
,
unsigned
*
column
,
StringLiteral
**
fileId
)
void
Symbol
::
getStartPosition
(
unsigned
*
line
,
unsigned
*
column
,
StringLiteral
**
fileId
)
const
{
translationUnit
()
->
getPosition
(
_startOffset
,
line
,
column
,
fileId
);
}
void
Symbol
::
getEndPosition
(
unsigned
*
line
,
unsigned
*
column
,
StringLiteral
**
fileId
)
void
Symbol
::
getEndPosition
(
unsigned
*
line
,
unsigned
*
column
,
StringLiteral
**
fileId
)
const
{
translationUnit
()
->
getPosition
(
_endOffset
,
line
,
column
,
fileId
);
}
const
char
*
Symbol
::
fileName
()
const
...
...
src/shared/cplusplus/Symbol.h
View file @
d9812ac3
...
...
@@ -115,9 +115,9 @@ public:
unsigned
endOffset
()
const
;
void
setEndOffset
(
unsigned
offset
);
void
getPosition
(
unsigned
*
line
,
unsigned
*
column
=
0
,
StringLiteral
**
fileId
=
0
);
void
getStartPosition
(
unsigned
*
line
,
unsigned
*
column
=
0
,
StringLiteral
**
fileId
=
0
);
void
getEndPosition
(
unsigned
*
line
,
unsigned
*
column
=
0
,
StringLiteral
**
fileId
=
0
);
void
getPosition
(
unsigned
*
line
,
unsigned
*
column
=
0
,
StringLiteral
**
fileId
=
0
)
const
;
void
getStartPosition
(
unsigned
*
line
,
unsigned
*
column
=
0
,
StringLiteral
**
fileId
=
0
)
const
;
void
getEndPosition
(
unsigned
*
line
,
unsigned
*
column
=
0
,
StringLiteral
**
fileId
=
0
)
const
;
/// Returns this Symbol's name.
Name
*
name
()
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