dhh1128 / intent

the intent formal language
https://intentlang.org
2 stars 1 forks source link

Point to site of syntax errors like clang does #77

Open dhh1128 opened 9 years ago

dhh1128 commented 9 years ago

Notice how the caret and the tildes make the site of the error explicit in the errors below.

/home/d/code/x/src/j/j.cpp:3321:7: warning: Value stored to 'bSigned' is never read
                                                bSigned = (*pszSpot == '$');
                                                ^         ~~~~~~~~~~~~~~~~~
6 warnings generated.
Linking CXX executable J
[ 10%] Building CXX object b/src/b/CMakeFiles/b.dir/a.cpp.o
/home/d/code/x/src/b/src/b/a.cpp:579:3: warning: Value stored to 'appOverrideId' is never read
                appOverrideId = 0;
                ^               ~
/home/d/code/x/src/b/src/b/a.cpp:579:3:580:3: warning: Value stored to 'opOverrideId' is
      never read
                opOverrideId = 0;
                ^              ~
2 warnings generated.
In file included from /home/d/code/s/src/b/e.cpp:1:
In file included from /home/d/code/s/src/b/include/e.hpp:6:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/vector:63:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_uninitialized.h:75:19: warning: Forming reference to
      null pointer
                std::_Construct(std::__addressof(*__cur), *__first);
                                ^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.