[all-commits] [llvm/llvm-project] c81366: [clang] Fix static analyzer concerns in #embed cod...
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Fri Jul 19 00:33:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c81366709574bb95bad86011a44e80a7f97f2c56
https://github.com/llvm/llvm-project/commit/c81366709574bb95bad86011a44e80a7f97f2c56
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2024-07-19 (Fri, 19 Jul 2024)
Changed paths:
M clang/include/clang/Lex/PPEmbedParameters.h
M clang/lib/Lex/PPDirectives.cpp
A clang/test/Preprocessor/embed_search_paths.c
Log Message:
-----------
[clang] Fix static analyzer concerns in #embed code (#99331)
1. Dead code in `LookupEmbedFile`. The loop always exited on the first
iteration. This was also causing a bug of not checking all directories
provided by `--embed-dir`.
2. Use of uninitialized variable `CurTok` in `LexEmbedParameters`. It
was used to initialize the field which seems to be unused. Removed
unused field, this way `CurTok` should be initialized by Lex method.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list