1 //===-- ResourceScriptCppFilter.h ------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===---------------------------------------------------------------------===// 9 // 10 // This filters the input to llvm-rc for preprocessor markers, removing 11 // preprocessing directives that a preprocessor can output or leave behind. 12 // 13 // It also filters out any contribution from files named *.h or *.c, based 14 // on preprocessor line markers. When preprocessing RC files, the included 15 // headers can leave behind C declarations, that RC doesn't understand. 16 // Rc.exe simply discards anything that comes from files named *.h or *.h. 17 // 18 // https://msdn.microsoft.com/en-us/library/windows/desktop/aa381033(v=vs.85).aspx 19 // 20 //===---------------------------------------------------------------------===// 21 22 #ifndef LLVM_TOOLS_LLVMRC_RESOURCESCRIPTCPPFILTER_H 23 #define LLVM_TOOLS_LLVMRC_RESOURCESCRIPTCPPFILTER_H 24 25 #include "llvm/ADT/StringRef.h" 26 27 #include <string> 28 29 namespace llvm { 30 31 std::string filterCppOutput(StringRef Input); 32 33 } // namespace llvm 34 35 #endif 36