Summary: Right now there is no test for compilation database integration. Add one Reviewed By: jvillard Differential Revision: D4118769 fbshipit-source-id: 5591de7master
parent
c9bac51b81
commit
80f25d17fd
@ -0,0 +1,4 @@
|
||||
cmake_minimum_required (VERSION 3.1)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
project (HELLO)
|
||||
add_library (Hello hello.cpp)
|
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright (c) 2015 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
void test() {
|
||||
int* s = nullptr; // requires -std=c++11 flag
|
||||
*s = 42;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"bug_type": "NULL_DEREFERENCE",
|
||||
"file": "hello.cpp",
|
||||
"procedure": "test"
|
||||
}
|
||||
]
|
Loading…
Reference in new issue