summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/documentation/not_a_compiler.txt
blob: 439d43094df210dde8e44073eae7d59af7cef0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
uncrustify is not a compiler.

Let have a look on:

# if A
   int abc( int a, int b, int c)
   {
      // do something
# else
   int abc( int a, int b)
   {
      // do something else
# endif
   }

It will produce an error, because uncrustify doesn't evaluate the value of A.
uncrustify will read all the lines, a compiler only a part of it, depending on A.

uncrustify encounter two opening braces but only one closing brace.