mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
driver/gen/ir: clang-format the world
This uses the LLVM style, which makes sense for sharing code with other LLVM projects. The DMD code we use will soon all be in D anyway.
This commit is contained in:
parent
123666cf89
commit
44b0f7b615
125 changed files with 28991 additions and 30602 deletions
|
@ -27,7 +27,8 @@
|
|||
// returns true if the quote is unescaped
|
||||
bool applyBackslashRule(std::string &arg) {
|
||||
std::string::reverse_iterator it;
|
||||
for (it = arg.rbegin(); it != arg.rend() && *it == '\\'; ++it) {}
|
||||
for (it = arg.rbegin(); it != arg.rend() && *it == '\\'; ++it) {
|
||||
}
|
||||
size_t numbs = std::distance(arg.rbegin(), it);
|
||||
bool escapedquote = numbs % 2;
|
||||
size_t numescaped = numbs / 2 + escapedquote;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue