I have a build log file that includes information on issues reported by clang-tidy. Each of the lines in the log file that reference an issue identified by clang-tidy contain the string "warning G". The problem is that the vast majority of the issues are not in my code and most of those that are not in my code are in Boost. Each of the lines in the log file that reference an issue identified by clang-tidy in Boost also contain the string "\include\boost/". So what I need is a way to list all the lines in the buffer that contain the string "warning G" and do not contain the string "\include\boost/".
Occur gets me half way there, it allows me to list all lines that match "warning G" but I do not know how to filter out the lines that match "\include\boost/".