]> git.ipfire.org Git - thirdparty/ccache.git/commit
Make cc_process_args() only use local variables
authorThomas Otto <thomas.otto@pdv-fs.de>
Sun, 19 Jan 2020 16:49:19 +0000 (17:49 +0100)
committerThomas Otto <thomas.otto@pdv-fs.de>
Mon, 27 Jan 2020 18:51:10 +0000 (19:51 +0100)
commitbd9897fba73fbdfc371bb7a03afe600b1f34e0e4
tree3c26323da1a19cdefcf5d05cd00fe1cf01706b8a
parent9e21157a4a73562d70b565ea11d2f38f2a985941
Make cc_process_args() only use local variables

cc_process_args writes into a new ArgsInfo struct and only accesses
local variables (minus guessed_compiler). For now these are mostly
copied into the global variables again after the function call.

Most ccache.cpp global variables moved to legacy_globals.cpp.
Makefile.in
src/ArgsInfo.cpp [new file with mode: 0644]
src/ArgsInfo.hpp [new file with mode: 0644]
src/ccache.cpp
src/ccache.hpp
src/legacy_globals.cpp [new file with mode: 0644]
src/legacy_globals.hpp [new file with mode: 0644]
src/manifest.cpp
unittest/test_Util.cpp
unittest/test_argument_processing.cpp