Summary: Add test for compilation database and --changed-files-index option Fix one bug that the test uncovered Reviewed By: dulmarod Differential Revision: D4198502 fbshipit-source-id: 9039c65master
parent
34739522c0
commit
548918e524
@ -1 +1,2 @@
|
||||
hello.cpp, test, 2, NULL_DEREFERENCE, [start of procedure test()]
|
||||
hello.cpp, test0, 2, NULL_DEREFERENCE, [start of procedure test0()]
|
||||
hello.cpp, test1, 2, NULL_DEREFERENCE, [start of procedure test1(),start of procedure deref1()]
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required (VERSION 3.1)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
project (HELLO)
|
||||
add_library (Hello hello.cpp)
|
||||
add_library (Hello hello.cpp lib1.cpp lib2.cpp)
|
||||
|
@ -0,0 +1,2 @@
|
||||
hello.cpp
|
||||
lib1.cpp
|
@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - 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.
|
||||
*/
|
||||
#include "lib1.h"
|
||||
|
||||
int deref1(int* p) { return *p; }
|
@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - 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.
|
||||
*/
|
||||
int deref1(int* p);
|
@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - 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.
|
||||
*/
|
||||
#include "lib2.h"
|
||||
|
||||
int deref2(int* p) { return *p; }
|
@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - 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.
|
||||
*/
|
||||
int deref2(int* p);
|
Loading…
Reference in new issue