Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clang warns this: ``` ../parsers/typescript.c:740:18: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] va_start (args, skipUnparsed); ^ ../parsers/typescript.c:732:56: note: parameter of type 'bool' is declared here static bool tryInSequence(tokenInfo *const token, bool skipUnparsed, ...) ^ ``` See also: https://wiki.sei.cmu.edu/confluence/display/cplusplus/EXP58-CPP.+Pass+an+object+of+the+correct+type+to+va_start It seems that passing `bool` to `va_start` has undefined behavior. I think that the first argument after `skipUnparsed` is mandatory. So, I added `parser` argument after `skipUnparsed`. Then, this causes type mismatch between `parseComment()` function. So, I also updated the function to match with `Parser` type.
- Loading branch information