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
I have issue with uncrustify validation of C header file. I have attached file along with configuration file. Please find below detailed information,
Uncrustify version
ashvnp@AX3:~/uncrustify/build:$(origin):((HEAD detached at uncrustify-0.78.1))$ uncrustify -v
Uncrustify-0.78.1
Output file error logs on console (Not generating unc_debug.txt file)
ashvnp@AX3:$ uncrustify -p unc_debug.txt -c unc_update.cfg --check -f all_tests.h
do_source_file: Parsing: all_tests.h as language C-Header
parse_cleanup(469): pc orig line is 19, orig col is 1, Text() is '}', type is BRACE_CLOSE
check(271): #endif found, at line 22, column 1, without corresponding #if
In file all_tests.h if I make line:14 to line:16 in one line (line:14) then it works fine (Please find attached updated file with name all_tests_pass.h). But that is also with limitations like I can't run uncrustify on it next time as it returns with same issue. Attached file unc_debug.txt is output of all_tests_pass.h file check.
ashvnp@AX3:~::$ uncrustify -p unc_debug.txt -c unc_update.cfg --no-backup -f all_tests_pass.h
do_source_file: Parsing: all_tests_pass.h as language C-Header
#ifndef ALL_TESTS_H_
#define ALL_TESTS_H_
#include <stdio.h>
#include <string.h>
#include "debug.h"
static void add_all_tests (unsigned int rcv_cmd)
{
test_command_all (rcv_cmd);
debug_print ("rcv command information is being received and processed further \
with is %d", rcv_cmd);
#if (defined TESTING_RUN_ABCD || defined TESTING_RUN_EFGH || defined TESTING_RUN_IJKL) &&\
!defined TESTING_SKIP_WXYZ
ENABLE_TESTING (add_test);
#endif
}
#endif /* ALL_TESTS_H_ */
Does it require to do any other configuration in uncrustify config file?
Could anyone please help me to resolve this issue?
I have issue with uncrustify validation of C header file. I have attached file along with configuration file. Please find below detailed information,
In file
all_tests.h
if I make line:14 to line:16 in one line (line:14) then it works fine (Please find attached updated file with nameall_tests_pass.h
). But that is also with limitations like I can't run uncrustify on it next time as it returns with same issue. Attached fileunc_debug.txt
is output ofall_tests_pass.h
file check.Does it require to do any other configuration in uncrustify config file?
Could anyone please help me to resolve this issue?
[Note: Some files are renamed with .txt extensions]
unc_debug.txt
all_tests.h.txt
all_tests_pass.h.txt
unc_update.cfg.txt
The text was updated successfully, but these errors were encountered: