ClangLoader: Pull out common remapped file operations
authorDave Marchevsky <davemarchevsky@fb.com>
Fri, 6 Aug 2021 05:12:17 +0000 (22:12 -0700)
committerDave Marchevsky <davemarchevsky@fb.com>
Fri, 6 Aug 2021 05:48:02 +0000 (22:48 -0700)
commitc8d65dca7beedc0361b3e5c499f46c52aebfcfcc
tree760e48bea7c7bc06021887df1fc95a817fd4824e
parent10dac5fcdecd1afee08a3918feb744abeff81432
ClangLoader: Pull out common remapped file operations

I'm making some larger modifications to the loader. While reading
through the `do_compile` code I noticed that the common "remapped file"
operations - telling various CompilerInvocations about 'virtual'
includes and the virtual main c file - could be factored out to enhance
clarity.

This patch doesn't change functionality at all, nor does it try to make
any opinionated refactoring changes.
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/loader.h