File: 10062-UNI-1356.cpp

package info (click to toggle)
uncrustify 0.68.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,000 kB
  • sloc: cpp: 56,567; ansic: 19,840; cs: 3,097; python: 2,717; objc: 1,650; java: 510; sh: 390; awk: 150; perl: 63; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Hi,
// When using "space only" and "indent continue", I notice a wrong indentation in C language (at least)
// function call when the retrun value is assigned to a variable and the call is split in two or more line.
// In that case the indent is twice the indent set in "indent_continue"
// This only appears when "indent_with_tabs" is set to 0 "space only" and 1
// "indent with tabs to brace level, align with spaces"
// Version tested:
// 0.59: good indentation
// 0.60: wrong indentation
// master (sha1 fc5228e): wrong indentation
// Here are some details about thats issue:
// orignal code
// The long line are manually split and not indented to test uncrustify indent

int main (int argc, char *argv[])
{
  double a_very_long_variable = test (foobar1, foobar2, foobar3, foobar4,
      foobar5, foobar6);

  double a_other_very_long = asdfasdfasdfasdfasdf + asdfasfafasdfa +
      asdfasdfasdf - asdfasdf + 56598;

  testadsfa (dfasdf, fdssaf, dsfasdf, sadfa, sadfas, fsadfa,
      aaafsdfa, afsd, asfdas, asdfa, asfasdfa, afsda, asfdasfds, asdfasf);

  return 0;
}