This is an archive of the discontinued LLVM Phabricator instance.

[Patch 2/3]: Rebasing Ryan Govostes' STP patch for Clang SA
Needs ReviewPublic

Authored by bshastry on Dec 17 2015, 7:38 AM.

Details

Summary
  • Use of std::unique_ptr to return ConstraintManager instance
  • Minor changes to CMakeLists.txt to get code to build with mainline code

Diff Detail

Event Timeline

bshastry updated this revision to Diff 43142.Dec 17 2015, 7:38 AM
bshastry retitled this revision from to [Patch 2/3]: Rebasing Ryan Govostes' STP patch for Clang SA.
bshastry updated this object.
bshastry added a reviewer: rgov.
bshastry set the repository for this revision to rL LLVM.
bshastry added a project: Restricted Project.
bshastry added a subscriber: Restricted Project.

Adding Anna and Devin as reviewers.

xazax.hun added a subscriber: xazax.hun.
zaks.anna edited edge metadata.Jan 6 2016, 11:41 AM

What was the last outstanding issue with this patch (I believe it was related to either make or cmake changes)?
Has it been addressed?

What was the last outstanding issue with this patch (I believe it was related to either make or cmake changes)?
Has it been addressed?

I have tested on a Linux machine and can confirm that it works as documented in the README. The cmake bit of the patch is actually in the third and final sequence of patches for this issue [1].

Caveats:

  • stp APIs that the plugin uses need to be statically linked
    • I have only known stp being used by an executable (KLEE) where dynamic linking is a possibility
    • For something that is itself a shared object library (this plugin), static linking is the work-around that I chose

[1]: http://reviews.llvm.org/D15612