[all-commits] [llvm/llvm-project] 701d80: [clang][Modules] `checkModuleIsAvailable` should u...
David Stone via All-commits
all-commits at lists.llvm.org
Sat Oct 7 18:49:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 701d804cdb6944fbb2d4519c1f334425b3a38677
https://github.com/llvm/llvm-project/commit/701d804cdb6944fbb2d4519c1f334425b3a38677
Author: David Stone <davidfromonline at gmail.com>
Date: 2023-10-08 (Sun, 08 Oct 2023)
Changed paths:
M clang/include/clang/Lex/Preprocessor.h
M clang/lib/Frontend/CompilerInstance.cpp
M clang/lib/Frontend/FrontendAction.cpp
M clang/lib/Lex/PPDirectives.cpp
M clang/lib/Lex/Pragma.cpp
Log Message:
-----------
[clang][Modules] `checkModuleIsAvailable` should use a const & parameter instead of pointer (#67902)
The `Module` parameter to `checkModuleIsAvailable` is currently passed
by pointer to non-const. However, it requires only const access and it
cannot be null. Change this to be a reference to const instead.
This then makes it obvious that it is an input-only parameter, so move
it to be before the in-out parameter for diagnostics.
More information about the All-commits
mailing list