Search in sources :

Example 1 with CppCompileInfo

use of com.google.devtools.build.lib.actions.extra.CppCompileInfo in project heron by twitter.

the class CppCheckstyle method getSourceFiles.

@SuppressWarnings("unchecked")
private static Collection<String> getSourceFiles(String extraActionFile) {
    ExtraActionInfo info = ExtraActionUtils.getExtraActionInfo(extraActionFile);
    CppCompileInfo cppInfo = info.getExtension(CppCompileInfo.cppCompileInfo);
    return Collections2.filter(cppInfo.getSourcesAndHeadersList(), Predicates.and(Predicates.not(Predicates.containsPattern("third_party/")), Predicates.not(Predicates.containsPattern("config/heron-config.h")), Predicates.not(Predicates.containsPattern(".*pb.h$")), Predicates.not(Predicates.containsPattern(".*cc_wrapper.sh$")), Predicates.not(Predicates.containsPattern(".*pb.cc$"))));
}
Also used : CppCompileInfo(com.google.devtools.build.lib.actions.extra.CppCompileInfo) ExtraActionInfo(com.google.devtools.build.lib.actions.extra.ExtraActionInfo)

Aggregations

CppCompileInfo (com.google.devtools.build.lib.actions.extra.CppCompileInfo)1 ExtraActionInfo (com.google.devtools.build.lib.actions.extra.ExtraActionInfo)1