phosek added inline comments.
================
Comment at: cmake/Modules/GetClangResourceDir.cmake:17
+
+ set(oneValueArgs PREFIX SUBDIR)
+ cmake_parse_arguments(RESOURCE_DIR "" "${oneValueArgs}" "" ${ARGN})
----------------
This variable is only used once on the following line, I'd just inline it which
is more idiomatic.
================
Comment at: cmake/Modules/GetClangResourceDir.cmake:18
+ set(oneValueArgs PREFIX SUBDIR)
+ cmake_parse_arguments(RESOURCE_DIR "" "${oneValueArgs}" "" ${ARGN})
+
----------------
It's more idiomatic to parse arguments at the start of the function.
================
Comment at: cmake/Modules/GetClangResourceDir.cmake:18
+ set(oneValueArgs PREFIX SUBDIR)
+ cmake_parse_arguments(RESOURCE_DIR "" "${oneValueArgs}" "" ${ARGN})
+
----------------
phosek wrote:
> It's more idiomatic to parse arguments at the start of the function.
This is just a nit, but we usually use a prefix like `ARGS` to make it clear
that these are input arguments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141907/new/
https://reviews.llvm.org/D141907
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits