You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#if: not and compl are only recognized at the start of an expression or after ( #729
In C++ code, not and compl are alternative spellings of ! and ~. In an #if expression, simplecpp only treats them as
operators when they appear at the start of the expression or after (, and are followed by a number or a name. Other uses give a
wrong result without an error, or an error where g++ accepts the expression.
#if1 && not0
yes
#elseno
#endif
g++/clang++: yes. simplecpp: no, with no error or warning.
Activity
Fix cppcheck-opensource#729 (#if: not and compl are only recognized a…