Skip to content

Commit

Permalink
Do not attempt clang-analyzer builds on 7.1.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zwoop committed Oct 24, 2018
1 parent d83798a commit ef669b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .clang-analyzer
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.


# Additional checkers
# This has a lot of potential FPs: -enable-checker alpha.unix.PthreadLock\
checkers="-enable-checker alpha.unix.cstring.BufferOverlap \
-enable-checker alpha.unix.PthreadLock\
-enable-checker alpha.core.BoolAssignment \
-enable-checker alpha.core.CastSize \
-enable-checker alpha.core.SizeofPtr"
5 changes: 4 additions & 1 deletion ci/jenkins/bin/clang-analyzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ export CCC_CC=${LLVM_BASE}/bin/clang
export CCC_CXX=${LLVM_BASE}/bin/clang++

# This can be used to override any of those settings above
# [ -f ./.clang-analyzer ] && source ./.clang-analyzer
[ -f ./.clang-analyzer ] && source ./.clang-analyzer

# Don't do clang-analyzer runs on 7.1.x branch
grep -q 700100 configure.ac && echo "7.1.x branch detected, stop here!" && exit 0

# Start the build / scan
[ "$output" != "/tmp" ] && echo "Results (if any) can be found at ${results_url}"
Expand Down

0 comments on commit ef669b2

Please sign in to comment.