Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop
Commits
12227337
Commit
12227337
authored
Oct 13, 2022
by
Igor Kushnir
Browse files
skipStringOrCharLiteral: add raw string literal documentation
parent
d8d9afef
Changes
1
Hide whitespace changes
Inline
Side-by-side
kdevplatform/language/duchain/stringhelpers.cpp
View file @
12227337
...
...
@@ -66,6 +66,9 @@ bool isArrowOperator(QStringView str, int pos)
return
pos
>
0
&&
str
[
pos
-
1
]
==
QLatin1Char
(
'-'
)
&&
(
pos
==
1
||
str
[
pos
-
2
]
!=
QLatin1Char
(
'-'
));
}
/// Skips literals enclosed in single or double quotes.
/// No need to support raw string literals, because they cannot appear within a macro parameter list;
/// in other contexts libclang converts them into non-raw string literals in each string that ends up here.
int
skipStringOrCharLiteral
(
QStringView
str
,
int
pos
)
{
Q_ASSERT
(
pos
>=
0
&&
pos
<
str
.
size
());
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment