indent duplicate const
Bug #978952 reported by
Marco
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indent (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
using GNU indent 2.2.11
file in test.cpp
void test::test () const
{
}
file out test.cpp after indent
void
test::test () const const
{
}
this is reported here
http://
for resolve change in handletoken.c
1452 if ((parser_
1453 parser_
1454 parser_
1455 !strncmp (token, "const", 5))
to
1452 if ((parser_
1453 parser_
1454 parser_
1455 (!strncmp (token, "const", 5)==0))
To post a comment you must log in.
Another bug...
original file:
void function () {
DynamicPtr < Iterator < int > > iterator;
}
generate:
void function () {
DynamicPtr < Iterator < int >>iterator;
}
Flags:
indent -nbad -bap -nbc -bbo -hnl -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -d0 -di1 -nfc1 -i8 -ip0 -l100 -lp -npcs -nprs -npsl -sai -saf -saw -cs -nsc -sob -nfca -cp33 -ss -ut -il1 -brf