Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 428 Bytes

CODING_STYLE.md

File metadata and controls

32 lines (25 loc) · 428 Bytes

Coding standards should adhere to the OSG coding style

Member variables

int _variableName // note the camel case

Signatures

// check const correctness - do const wherever possible
int myFunction(const std::string& val) const
{
	return 5;
}

Brackets

// 
int myFunction(const std::string& val) const
{
	if (val.empty())
	{
		return -1;
	}
	
	return 1
}