Skip to main content

cpp include sort

Project description

example

C/С++ Includes Sort

This is a tool that allows you to quickly and conveniently sort all libraries included in the project in alphabetical order.

Examples

example

Text before:

#include <iostream>
#include <vector>
#include <stdio.h>
#include <algorithm>

#include "mylib.h"
#include "b_lib.h"
#include "a_first_lib.h"

#include <external/lib/main.hpp>
#include <external/lib/abuse.hpp>
#include <external/lib/func.hpp>

int main(){
	std::cout << "Hello, World!" << std::endl;
}

Text after:

#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <vector>

#include "a_first_lib.h"
#include "b_lib.h"
#include "mylib.h"

#include <external/lib/abuse.hpp>
#include <external/lib/func.hpp>
#include <external/lib/main.hpp>

int main(){
	std::cout << "Hello, World!" << std::endl;
}

Installation:

pip install cisort

Usage:

cisort [flags] [path]

Flags:
-r --recursive - recursive searching C/C++ files
-ls - show info about sorted files
-h --help - to get help
-c --comments - add comments to sorted blocks\n'

Contacts

VK, Telegram, Discord

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cisort-1.1.15.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

cisort-1.1.15-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page