Skip to content

Common library for basic language definitions used by LSP Project

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

lsp-plugins/lsp-common-lib

Repository files navigation

lsp-common-lib

This is a common library for basic C/C++ language definitions used by all other LSP-related libraries.

It provides:

  • Corresponding macros for architecture and platform detection.
  • Some set of additional basic types.
  • Macros for architecture-dependent assembly code and compilation.
  • Error codes and functions to work with them.

Supported platforms

The build and correct unit test execution has been confirmed for following platforms:

  • FreeBSD
  • GNU/Linux
  • OpenBSD
  • Windows 32-bit
  • Windows 64-bit

Requirements

The following packages need to be installed for building:

  • gcc >= 4.9
  • make >= 4.0

Building

To build the library, perform the following commands:

make config # Configure the build
make fetch # Fetch dependencies from Git repository
make
sudo make install

To get more build options, run:

make help

To uninstall library, simply issue:

make uninstall

To clean all binary files, run:

make clean

To clean the whole project tree including configuration files, run:

make prune

SAST Tools

  • PVS-Studio - static analyzer for C, C++, C#, and Java code.